// 
//  GreaderDialog.cs
//  
//  Author:
//       BOUTRY Arnaud <lordphoenix@tuxfamily.org>
// 
//  Copyright (c) 2010 BOUTRY Arnaud as LordPhoenix <lordphoenix@tuxfamily.org>
// 
//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
// 
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//  GNU General Public License for more details.
//  
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// 

using System;
using Gtk;
using System.Collections;

namespace swmt.swmtProvider.Greader
{
	internal partial class GreaderDialog : Gtk.Dialog
	{
		private string _username;
		private string _password;
		
		public string username{
			get{return _username;}
			set{
				_username = value;
				entAccount.Text = value;
			}
		}
		public string password{
			get{return _password;}
			set{
				_password = value;
				entPassword.Text = value;
			}
		}
		public GreaderDialog ()
		{
			this.Build ();
		}

		protected virtual void OnButtonCancelClicked (object sender, System.EventArgs e)
		{
			_username ="";
			_password = "";
		}

		protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
		{
			_username = entAccount.Text;
			_password = entPassword.Text;
		}
	}
}
